//
//  CCMineTableViewCell.m
//  CwinCar
//
//  Created by dlios on 15/10/15.
//  Copyright © 2015年 dlios. All rights reserved.
//

#import "CCMineTableViewCell.h"

@implementation CCMineTableViewCell

/*
 // Only override drawRect: if you perform custom drawing.
 // An empty implementation adversely affects performance during animation.
 - (void)drawRect:(CGRect)rect {
 // Drawing code
 }
 */

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if ([super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
     
        self.imgeView = [[UIImageView alloc]initWithFrame:CGRectMake(5 *suitableScreen_Width,6 *suitableScreen_Height, 45 *suitableScreen_Width, 34 *suitableScreen_Height)];
        
        self.imgeView.contentMode = UIViewContentModeCenter;//图片的内容格式不受限制，按照图片原有的尺寸居中设置
        self.imgeView.layer.cornerRadius = 5 *suitableScreen_Width;
        self.imgeView.layer.borderColor = [UIColor whiteColor].CGColor;
        self.imgeView.layer.borderWidth = 1;
        self.imgeView.layer.masksToBounds = YES;
        
        self.titleLable = [[UILabel alloc]initWithFrame:CGRectMake(55 *suitableScreen_Width, 6 * suitableScreen_Height, 100 *suitableScreen_Width, 34 *suitableScreen_Height)];
        
        [self.contentView addSubview:self.imgeView];
        [self.contentView addSubview:self.titleLable];
    }

    return self;
}
@end
